package batframework.mvc.view;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import batframework.mvc.View;



/**
 * 
 * @author bmyues
 *
 */
public abstract class AbstractView implements View
{
	
	protected HttpServletRequest request;
	
	protected HttpServletResponse response;
	
	protected ServletContext servletContext;
	
	protected Map<?,?> model;
	
	public String getContentType()
	{
		return null;
	}

	public void render(Map<?, ?> model, HttpServletRequest request, HttpServletResponse response) throws IOException
	{
		this.request = request;
		this.response = response;
		this.servletContext = request.getServletContext();
		this.model = model;
	}



}
